var cutscene_map_key, cutscene_queues_string;
if (global.control != -1)
{
for (n = 0; n < ds_list_size(global.team); n += 1)
{
team_member_destroy_actor(ds_list_find_value(global.team,n));
}
cutscene_map_key = ds_map_find_first(global.cutscene_map);
for (n = 0; n < ds_map_size(global.cutscene_map); n++)
{
cutscene_queues_string = ds_map_find_value(global.cutscene_map, cutscene_map_key);
ds_list_destroy(real(explode(0, "|", cutscene_queues_string)));
ds_list_destroy(real(explode(1, "|", cutscene_queues_string)));
ds_list_destroy(real(explode(2, "|", cutscene_queues_string)));
ds_list_destroy(real(explode(3, "|", cutscene_queues_string)));
cutscene_map_key = ds_map_find_next(global.cutscene_map, cutscene_map_key);
}
}
ds_map_clear(global.cutscene_map);
ds_map_clear(global.cutscene_characters);
ds_map_clear(global.warp);
ds_map_clear(global.ds_dialogs);
